﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Elderos.Ontology;

namespace Elderos.Highlight.Rules
{
	//be sure rule GUID is unique
    [RankingRule("SynonymLowerCase", RuleType.Synonym, IsActive = false)]
    public class RuleSynonymLowerCase : SynonymRule
    {
        public RuleSynonymLowerCase(IOntologyData ontology) : base(ontology) { }

        protected override IRuleResult ComputeResult(string synonym)
        {
            return new BinomialResult(Name, synonym == synonym.ToLower());
        }

        public override IRuleResult EmptyResult
        {
            get { return new BinomialResult(Name, false); }
        }
    }
}
